home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / patches / symantec / rtlinc.exe / LOCALE.H < prev    next >
C/C++ Source or Header  |  1993-08-01  |  2KB  |  83 lines

  1. /*_ locale.h   Thu Sep  8 1988   Modified by: Walter Bright */
  2.  
  3. #ifndef __LOCALE_H
  4. #define __LOCALE_H 1
  5.  
  6. #if __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #ifdef __STDC__
  11. #define __CDECL
  12. #define __STDCALL
  13. #else
  14. #define __CDECL __cdecl
  15. #define __STDCALL __stdcall
  16. #endif
  17.  
  18. #if __OS2__ && __INTSIZE == 4
  19. #define __CLIB    __STDCALL
  20. #else
  21. #define __CLIB    __CDECL
  22. #endif
  23.  
  24. /* Supported locales    */
  25. enum _LOCALE
  26. {   _LOCALE_C,        /* minimal environment for C translation    */
  27.     _LOCALE_USA,    /* implementation-defined native (USA)        */
  28.     _LOCALE_ITALY,
  29.     _LOCALE_NETHERLANDS,
  30.     _LOCALE_NORWAY,
  31.     _LOCALE_SWITZERLAND,
  32.     _LOCALE_UK,        /* United Kingdom                */
  33.     _LOCALE_JAPAN,
  34.     _LOCALE_KOREA,
  35.     _LOCALE_CHINA,    /* and Taiwan                    */
  36.     _LOCALE_MAX
  37. };
  38.  
  39. #define _LOCALE_NATIVE    _LOCALE_USA
  40.  
  41. #pragma pack(1)
  42. struct lconv
  43. {
  44.     char *decimal_point;
  45.     char *thousands_sep;
  46.     char *grouping;
  47.     char *int_curr_symbol;
  48.     char *currency_symbol;
  49.     char *mon_decimal_point;
  50.     char *mon_thousands_sep;
  51.     char *mon_grouping;
  52.     char *positive_sign;
  53.     char *negative_sign;
  54.     char int_frac_digits;
  55.     char frac_digits;
  56.     char p_cs_precedes;
  57.     char p_sep_by_space;
  58.     char n_cs_precedes;
  59.     char n_sep_by_space;
  60.     char p_sign_posn;
  61.     char n_sign_posn;
  62.     char lc[6];        /* index is LC_XXX, values are _LOCALE_XXX */
  63. };
  64.  
  65. #pragma pack()
  66.  
  67. #define LC_ALL        0
  68. #define LC_COLLATE    1
  69. #define LC_CTYPE    2
  70. #define LC_MONETARY    3
  71. #define LC_NUMERIC    4
  72. #define LC_TIME        5
  73.  
  74. char * __CLIB setlocale(int category, const char *locale);
  75. struct lconv * __CLIB localeconv(void);
  76.  
  77. #if __cplusplus
  78. }
  79. #endif
  80.  
  81.  
  82. #endif
  83.